package com.minglead.springboot.platform.sys.entity;
import org.hibernate.validator.constraints.Length;

import com.minglead.springboot.common.persistence.DataEntity;

/**
 * 桌面插件Entity
 * @author clz
 * @version 2017-09-05
 */
public class DesktopPlug extends DataEntity<DesktopPlug> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 插件名称
	private Integer sort;		// 排序
	private String url;		// url
	private String icon;		// 图标路径预览
	private String remark;		// 备注
	
	private Integer width;		// 长
	private Integer height;		// 高
	
	private String css;		// 额外样式
	
	
	private String widthHeight;
	
	
	
	public DesktopPlug() {
		super();
	}

	public DesktopPlug(String id){
		super(id);
	}

	@Length(min=0, max=255, message="插件名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=255, message="url长度必须介于 0 和 255 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	

	@Length(min=0, max=255, message="图标路径预览长度必须介于 0 和 255 之间")
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	@Length(min=0, max=1000, message="备注长度必须介于 0 和 1000 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
	

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}
	@Length(min=0, max=1000, message="css长度必须介于 0 和 255之间")
	public String getCss() {
		return css;
	}

	public void setCss(String css) {
		this.css = css;
	}

	
	public String getWidthHeight() {
		return widthHeight;
	}

	public void setWidthHeight(String widthHeight) {
		this.widthHeight = widthHeight;
	}

	@Override
	public String toString() {
		return "DesktopPlug [name=" + name + ", id=" + id + "]";
	}
	
}